Einhugur Color Management Plugin for Objo

Einhugur.ColorManagement.ICCColorProfile.ConvertToColorProfileAsync Method

Does async color profile conversion on a RawBitmap taking destination hint as parameter, creating new instance of RawBitmap with the result.

async ConvertToColorProfileAsync(
   bitmap as Einhugur.RawBitmap,
   destinationHint as Einhugur.ColorManagement.Depths) as Einhugur.RawBitmap

Parameters

bitmap
The RawBitmap instance to be converted to the color profile.
destinationHint
The destination depth hint for the conversion.

Returns

Einhugur.RawBitmap
A new RawBitmap instance with the color profile applied.

Remarks

The destination hint can for example be used to force 16 bit per channel image down to 8 bit per channel image during conversion.

Note that the plugin can only convert RGB based, Gray based profiles and CMYK based profiles as RawBitmap object does not support other kinds of color spaces currently.

This function can throw Exception.

See Also

Einhugur.ColorManagement.ICCColorProfile Class